package com.fcscs.cservice.ws.client.reservationservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.reservationservice.GetRCRequest;
import com.fcscs.cservice.ws.schema.reservationservice.GetRCResponse;

public class GetRCClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetRCClient.class);

	public GetRCResponse findResv(GetRCRequest req) {
		GetRCResponse resp = (GetRCResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv " + resp.getRcView());
		return resp;
	}

}
